<template>
  <div id="app">
    <router-view/>
  </div>
</template>
<script>

export default {
  name: 'app',
  
  data(){
    return{
          
     }
  },
  created(){

  },
  
  mounted(){
     if (this._isMobile()) {
        window.location.href = 'http://h5.em616.cn';
     }     
  },
  
  methods:{
    _isMobile(){
      let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
      return flag;
    }

  }
} 
</script>

<style>

@import './assets/css/base.css';
@import './assets/css/index.css';
@import './assets/css/swiper.min.css';

</style>
